From: Florian Müllner Date: Sun, 4 Sep 2011 16:39:37 +0000 (+0200) Subject: user-menu: Rename "Do Not Disturb" to "Notifications" X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7801 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a5d0ac7955463170202875f7bf46a6b298826f7b;p=gnome-shell.git user-menu: Rename "Do Not Disturb" to "Notifications" At least for the foreseeable future, the gnome-session desktop presence won't be used for anything but suppressing (non-urgent) notifications. To clarify this behavior, rename the "Do Not Disturb" switch to "Notifications" (and adjust the switch logic accordingly). https://bugzilla.gnome.org/show_bug.cgi?id=652718 --- diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index d5349bae2..7a32d8775 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -522,8 +522,8 @@ UserMenuButton.prototype = { }, _updateSwitch: function(presence, status) { - let active = status == GnomeSession.PresenceStatus.BUSY; - this._dontDisturbSwitch.setToggleState(active); + let active = status == GnomeSession.PresenceStatus.AVAILABLE; + this._notificationsSwitch.setToggleState(active); }, _updatePresenceIcon: function(accountMgr, presence, status, message) { @@ -548,10 +548,10 @@ UserMenuButton.prototype = { item.connect('activate', Lang.bind(this, this._onMyAccountActivate)); this.menu.addMenuItem(item); - item = new PopupMenu.PopupSwitchMenuItem(_("Do Not Disturb")); + item = new PopupMenu.PopupSwitchMenuItem(_("Notifications")); item.connect('activate', Lang.bind(this, this._updatePresenceStatus)); this.menu.addMenuItem(item); - this._dontDisturbSwitch = item; + this._notificationsSwitch = item; item = new PopupMenu.PopupSeparatorMenuItem(); this.menu.addMenuItem(item); @@ -594,8 +594,8 @@ UserMenuButton.prototype = { }, _updatePresenceStatus: function(item, event) { - let status = item.state ? GnomeSession.PresenceStatus.BUSY - : GnomeSession.PresenceStatus.AVAILABLE; + let status = item.state ? GnomeSession.PresenceStatus.AVAILABLE + : GnomeSession.PresenceStatus.BUSY; this._presence.setStatus(status); },